package Controllers;

import elevatorsimulator.WorldBuilder;

import javax.swing.*;
import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: Peev
 * Date: 8/25/11
 * Time: 2:03 AM
 * To change this template use File | Settings | File Templates.
 */
public class OpenElevatorDoor {
    public void run(WorldBuilder wb, ArrayList<JLabel> elevatorDoorStatusLblArray, String DOOROPEN) {
        elevatorDoorStatusLblArray.get(wb.e.getCurrentFloor() - 1).setText(DOOROPEN);
    }
}
